#!/usr/bin/env python

from __future__ import with_statement
import sys
import os

if sys.platform == 'win32':
    with open(os.path.join(sys.prefix, 'c.bat'), 'w') as f:
        f.write('@python -m contest.main %*\n')
    with open(os.path.join(sys.prefix, 'q.bat'), 'w') as f:
        f.write('@python -m contest.main -q %*\n')
    with open(os.path.join(sys.prefix, 't.bat'), 'w') as f:
        f.write('@python -m contest.runtests %*\n')

elif os.name == 'posix':
    print(r'''Put following lines to your profile.

alias c='python -m contest.main'
alias q='python -m contest.main -q'
alias t='python -m contest.runtests'
''')
